package com.yyg.boot.repository;

import com.yyg.boot.entity.Book;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface BookRepository extends ElasticsearchRepository<Book, String> {

    //Optional<Book> findById(String id);

    Page<Book> findByAuthor(String author, Pageable pageable);

}
